package net.jonbuck.tassoo.ui.dialog.provider;

import java.util.ArrayList;

import net.jonbuck.tassoo.model.AttachmentType;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

/**
 * 
 * 
 * @since 1.0.0
 */
public class AttachmentTypeContentProvider implements IStructuredContentProvider {

	/**
	 * 
	 */
	public void dispose() {
	}

	/**
	 * 
	 */
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	}

	/**
	 * 
	 */
	@SuppressWarnings("unchecked")
	public Object[] getElements(Object inputElement) {
		return ((ArrayList<AttachmentType>) inputElement).toArray();
	}

}
